{
  "$${env('id','@id')}": "${@id}",
  "@type": [
    "Feature",
    "gsml:MappedFeature",
    "http://vocabulary.odm2.org/samplingfeaturetype/mappedFeature"
  ],
  "name": "${gml:name}",
  "gsml:positionalAccuracy": {
    "type": "$${env('positionalAccuracyType','CGI_NumericValue')}",
    "value": "${gsml:positionalAccuracy/gsml:CGI_NumericValue/gsml:principalValue}",
    "valueArray": ["${gsml:positionalAccuracy/gsml:CGI_NumericValue/gsml:principalValue}","someStaticVal","$${strConcat('duplicated value: ', xpath('gsml:positionalAccuracy/gsml:CGI_NumericValue/gsml:principalValue'))}"]
  },
  "gsml:GeologicUnit": {
    "$source": "gsml:specification/gsml:GeologicUnit",
    "@id": "${@id}",
    "description": "$${xpath(env('description','gml:description'))}",
    "gsml:geologicUnitType": "urn:ogc:def:nil:OGC::unknown",
    "gsml:composition": [
      {
        "$source": "$${strConcat('gsml:',env('source', 'composition'))}"
      },
      {
        "previousContextValue": "$${xpath(strConcat('../',env('previous','gml:description')))}",
        "gsml:compositionPart": [
          {
            "$source": "gsml:CompositionPart"
          },
          {
            "gsml:role": {
              "value": "${../gsml:CompositionPart/gsml:role}",
              "@codeSpace": "urn:cgi:classifierScheme:Example:CompositionPartRole"
            },
            "proportion": {
              "$source": "gsml:proportion",
              "@dataType": "CGI_ValueProperty",
              "CGI_TermValue": {
                "@dataType": "CGI_TermValue",
                "value": {
                  "value": "${gsml:CGI_TermValue}",
                  "@codeSpace": "some:uri"
                }
              }
            },
            "lithology": [
              {
                "$source": "gsml:lithology"
              },
              {
                "@id": "${gsml:ControlledConcept/@id}",
                "name": {
                  "value": "${gsml:ControlledConcept/gsml:name}",
                  "@lang": "en"
                },
                "vocabulary": {
                  "@href": "urn:ogc:def:nil:OGC::missing"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  "geometry": {
    "@type": "Polygon",
    "wkt": "$${toWKT(xpath('gsml:shape'))}"
  },
  "nullObject": null,
  "nullText": null
}
